﻿using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[XmlInclude(typeof(BpmnDiagram))]
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/DD/20100524/DI", TypeName = "Diagram")]
[XmlRoot(Namespace = "http://www.omg.org/spec/DD/20100524/DI", IsNullable = false)]
public abstract partial class Diagram
{
    /// <remarks/>
    [XmlAttribute("name")]
    public string Name { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("documentation")]
    public string Documentation { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("resolution")]
    public double Resolution { get; set; } = default!;

    /// <remarks/>
    [XmlIgnore]
    public bool ResolutionSpecified { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("id", DataType = "ID")]
    public string Id { get; set; } = default!;
}
